Pro iOS and Android Apps for Business: With jQuery Mobile, node.js, and MongoDB by Frank Zammetti

Pro iOS and Android Apps for Business: With jQuery Mobile, node.js, and MongoDB by Frank Zammetti

Author:Frank Zammetti [Zammetti, Frank]
Language: eng
Format: epub
ISBN: 9781430260707
Publisher: Apress
Published: 2013-10-24T04:00:00+00:00


Also shown by this example is the JSON object, which is available intrinsically in JavaScript, at least in the version that Node.js uses. This object has two main purposes: creating objects from JSON using the JSON.parse() method and converting objects to JSON using the JSON.stringify() method. The latter comes in handy in order to display the CPU and NIC information. If we attempted simply to append the output of the os.cpus() or os.networkInterfaces() method, you’d find that the output is simply [object Object], which is the default toString() implementation for JavaScript objects, and it is also not very helpful! Displaying JSON is quite a bit more helpful, and it is easy to accomplish with JSON.stringify().



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.